<template>
  <div class="SchoolContainer">
    <div class="NavHeader">
      <div class="return">
        <router-link to="/home"
          ><Icon type="icon-xitongfanhui"></Icon
        ></router-link>
      </div>
      <div class="link">
        <router-link to="/school_i">查大学</router-link>
        <router-link to="/major">查专业</router-link>
      </div>
      <select name="subject" id="subject">
        <option value="本科">本科</option>
        <option value="专科">专科</option>
      </select>
    </div>
    <div class="routerView">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
// import Layout from "@/components/Layout.vue";
import Icon from "@/components/Icon.vue";
export default {
  name: "schoolComponent",
  mounted() {},
  components: {
    Icon,
    // Layout,
  },
};
</script>

<style lang="less" scoped>
.SchoolContainer {
  display: flex;
  flex-direction: column;

  // height: calc(100vh-50px);
}
.NavHeader {
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-weight: 700;
  padding: 0 10px;
  .return {
    width: 60px;
    height: 30px;
    line-height: 30px;
  }
  .link {
    a {
      width: 60px;
      padding: 5px;
      margin-right: 10px;
      font-weight: 500;
    }
  }
  #subject {
    width: 60px;
    height: 30px;
    line-height: 30px;
    background-color: rgb(250, 250, 250);
    border-radius: 5px;
    font-family: "宋体";
  }
}
.router-link-active {
  border-bottom: 2px solid black;
}
.routerView {
  flex: 1;
  height: 500px;
  // overflow: scroll;
}
</style>